package com.zs.admin.vo.qd;

import com.zs.common.util.StringUtils;
import com.zs.common.util.YmlUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Date;

@Data
@ApiModel("智书框id与题目id对应关系详情Vo")
public class QdMarkQuestDetailVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    private Long id;

    @ApiModelProperty(value = "题目id")
    private Long questId;

    @ApiModelProperty(value = "矩形区域id")
    private String markId;

    @ApiModelProperty(value = "")
    private Integer isDelete;

    @ApiModelProperty(value = "状态，")
    private Integer status;


    @ApiModelProperty(value = "矩形区域id")
    private String imgUrl;
    public String getImgUrl() {
        String https = YmlUtils.get("ossResource.https");
        if(StringUtils.isNotEmpty(imgUrl)){
            return https+imgUrl;
        }
        return YmlUtils.get("sysconf.app-host")+"api/wisdbook/page/markImg/render.png?markId="+markId;
    }
}
